<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script>
    function page(n,s){
        $("#pageNo").val(n);
        $("#pageSize").val(s);
        $("#examApplyForm").submit();
        return false;
    }
</script>
<div class="app">
    <div class="content-wrap">
        <ul class="nav nav-tabs">
            <li><a href="#" onclick="loadDiv('nurseIndexDiv','${ctx}/nurse/index')">床位列表</a></li>
            <li class="active">
                <a href="#">护理工作量查询</a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <div class="datatable-top">
                        <div class="pull-left">
                            <form  id="examApplyForm" onsubmit="return loadDivForm('nurseIndexDiv','examApplyForm','${ctx}/nurse/wardCodesIndex');" method="post" class="form-inline">
                                <label>时间：</label><input value="${inpBillDetail.startTime}" name="startTime" class="form-control Wdate" id="startTime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});">至<input class="form-control Wdate"id="endTime" value="${inpBillDetail.endTime}" name="endTime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});">
                                <input name="date" id="week" class="btn btn-default" type="button" value="一周内" onclick="dateCondition('week',-7,'startTime')"/>
                                <input name="date" id="halfMonth" class="btn btn-default" type="button" value="半月内" onclick="dateCondition('halfMonth',-15,'startTime')"/>
                                <input name="date"  id="month" class="btn btn-default" type="button" value="一个月内" onclick="dateCondition('month',-30,'startTime')"/>
                                <input  class="btn btn-primary" type="submit" value="查询"/>
                            </form>
                        </div>
                    </div>
                    <input type="hidden" id="applyId" value="">
                    <input type="hidden" id="name" value="">
                    <table id="examApplyTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>收费项目</th>
                            <th>规格</th>
                            <th>单位</th>
                            <th>人次</th>
                            <th>数量</th>
                            <th>金额</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${page.list}" var="inpBillDetail">
                            <tr>
                                <td>${inpBillDetail.itemName}</td>
                                <td>${inpBillDetail.itemSpec}</td>
                                <td>${fns:getDictLabel(inpBillDetail.units, 'SPEC_UNIT', '')}</td>
                                <td>${inpBillDetail.num}</td>
                                <td>${inpBillDetail.amount}</td>
                                <td>${inpBillDetail.itemPrice}</td>
                            </tr>
                        </c:forEach>
                        <tr>
                            <td></td>
                            <td style="border-left-width: 0px;"></td>
                            <td style="border-left-width: 0px;"></td>
                            <td style="border-left-width: 0px;"></td>
                            <td style="border-left-width: 0px;text-align: right;">费用合计：</td>
                            <td style="border-left-width: 0px;">${totalCost}</td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="pagination">${page}</div>
                </div>
            </div>
        </section>
    </div>
</div>
</div>
</div>